#override("title")
SpringWind - 场地列表
#end
#override("css")
<link href="#springUrl('/static/css/plugins/bootstrap-table/bootstrap-table.min.css')" rel="stylesheet">
<!--<link href="#springUrl('/static/tab/css/bootstrap.min.css')" rel="stylesheet">-->
<link href="#springUrl('/static/tab/css/font-awesome.min.css')" rel="stylesheet">
<link href="#springUrl('/static/tab/css/bootstrap-tab.css')" rel="stylesheet">
<link href="#springUrl('/static/css/less/style.css')" rel="stylesheet">
<style type="text/css">
	.d1{
		padding-right: 50%;
	}
	.d2{
		padding-right: 20%;
	}
	.black_overlay{
		display: none;
		position: absolute;
		top: 0%;
		left: 0%;
		width: 100%;
		height: 100%;
		background-color: black;
		z-index:1001;
		-moz-opacity: 0.8;
		opacity:.80;
		filter: alpha(opacity=88);
	}
	.white_content {
		display: none;
		position: absolute;
		top: 25%;
		left: 25%;
		width: 55%;
		height: 10%;
		padding: 0%;
		background-color: white;
		z-index:1002;
		overflow: auto;
	}
	.threatTop{
		top: 0%;
		left: 0%;
		padding: 0;
		margin: 0;
		width: 100%;
		height: 8%;
		background-color: #F8F8F8;
	}
    .tableThreat{
        table-layout:fixed;
        empty-cells:show;
        border-collapse: collapse;
        margin:0 auto;
        border:1px solid #cad9ea;
        color:#666;
    }
    .tableThreat th {
        font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
        color: #4f6b72;
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        border-top: 1px solid #C1DAD7;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-align: left;
        padding: 6px 6px 6px 12px;
        background: #CAE8EA no-repeat;
    }
    .tableThreat td,.table th{
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        background: #fff;
        font-size:14px;
        padding: 6px 6px 6px 12px;
        color: #4f6b72;
    }
    .tableThreat tr.alter{
        background-color:#f5fafe;
    }
</style>
#end
#override("breadcrumb")
<li><a>评分系统</a></li><li class="active"><strong>场地列表</strong>
	<!--<strong>$!{province}</strong><strong>$!{city}</strong>-->
</li>

<div class="container">
	<ul class="nav nav-pills nav-justified step step-arrow">
		<li>
			<a href="#springUrl('/siteSource/add')/${siteId}/0">污染物</a>
		</li>
		<li>
			<a href="#springUrl('/groundWater/index')/${siteId}/0">地下水</a>
		</li>
		<li>
			<a href="#springUrl('/surfaceWater/index')/${siteId}/0/0/0">地表水</a>
		</li>
		<li>
			<a href="#springUrl('/soil/add')/${siteId}">土壤</a>
		</li>
		<li>
			<a href="#springUrl('/air/add')/${siteId}">空气</a>
		</li>
	</ul>
</div>



#end
#override("content")
<div class="row ibox-content" style="margin:3%;padding: 4% 10%">
	<div id="tabContainer"></div>
	<div class="row">
		<!--<div class="col-sm-12">
			<table id="dataTable"></table>
			<table width="90%" class="tableThreat" id="tableIndex">
			</table>

		</div>-->
	</div>
</div>
#end
#override("js")
<script src="#springUrl('/static/js/plugins/bootstrap-table/bootstrap-table.min.js')"></script>
<script src="#springUrl('/static/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js')"></script>
<script src="#springUrl('/static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js')"></script>
<!--<script src="#springUrl('/static/js/base_list.js')"></script>-->
<script src="#springUrl('/static/js/common.js')"></script>
<!--<script src="#springUrl('/static/js/jquery-2.1.1.js')"></script>-->
<script src="#springUrl('/static/plugins/layer-v2.2/layer/layer.js')"></script>
<!--<script src="#springUrl('/static/plugins/nice-validator-0.8.1/jquery.validator.js?local=zh-CN')"></script>-->
<script src="#springUrl('/static/plugins/nice-validator-0.8.1/jquery.validator.js')"></script>
<!--<script src="#springUrl('/static/tab/jq/jquery-1.8.3.min.js')"></script>-->
<script src="#springUrl('/static/tab/js/bootstrap.min.js')"></script>
<script src="#springUrl('/static/tab/js/bootstrap-tab.js')"></script>
<script src="#springUrl('/static/js/base_list.js')"></script>
<script src="#springUrl('/static/js/lib/less.js')"></script>
<!--<script src="#springUrl('/static/js/lib/jquery.min.js')"></script>-->
<script src="#springUrl('/static/js/lib/lib.js')"></script>
<script type="text/javascript">
 //   var roleList=JSON.parse('${sWList}');
   // var dataUrl = "#springUrl('/surfaceWater/getSWList.html')";
    var sIndex = '${sIndex}';
    var sid = '${sId}';
 	var gid = '${gId}';
	var siteId = '${siteId}';
  /*  alert("sIndex:"+sIndex);
    alert(sid);*/
   // var s = '${sIndex}';


   /* var dataColumns = [{
        field: 'id',
        title: '序号'
    }, {
        field: 'name',
        title: '名称',
        formatter: function (value, row, index) {
            for(var i=0;i<roleList.length;i++) {
                if(roleList[i].name!=null) {
                    return roleList[i].name;
                }else {
                    return '-';
                }
            }
        }
    }, {
        field: 'score',
        title: '分数',
        formatter: function (value, row, index) {
            for(var i=0;i<roleList.length;i++) {
                if(roleList[i].score!=null) {
                    return roleList[i].score;
                }else {
                    return '-';
                }
            }
        }
    }, {
        field: 'used',
        title: '是否计入评分',
        formatter: function (value, row, index) {
            for(var i=0;i<roleList.length;i++) {
                if(roleList[i].used==true) {
                    return '是';
                }else {
                    return '否';
				}
            }
        }
    }, {
        title: '操作',
        formatter: function (value, row, index) {
            var id = row.id;
            var val='<a class="btn btn-xs btn-warning" onclick="editUser(' + "'" + id + "'" + ')"><i class="fa fa-pencil"></i>编辑</a> '
            return val;
        }
    }
    ];
    function dataQueryParams(params) {
        return {
            _size: params.limit,  //页面大小
            _index: params.offset //页码
        };
    }*/




   /* function delUser(userId) {
        //询问框
        layer.confirm('确定删除吗？', {
            btn: ['确定', '取消'] //按钮
        }, function () {
            $.ajax({
                type: "POST",
                url: "#springUrl('/perm/user/delUser/')" + userId,
                datatype: "text",
                success: function (data) {
                    if(data == 'true'){
                        $('#dataTable').bootstrapTable('refresh',{url:dataUrl});
                    }
                    layer.closeAll();
                }
            });
        }, function () {
            return;
        });
    }

    function editUser(id){
        var title = "新增用户";
        var url = "#springUrl('/perm/user/edit.html')";
        if(id!=null){
            title = "编辑用户";
            url = url + "?id=" + id;
        }
        layer.open({
            type: 2,
            title: title,
            shadeClose: true,
            shade: 0.6,
            area: ['550px', '580px'],
            fix: false,
            maxmin: true,
            content: url,
            end: function () {
                $('#dataTable').bootstrapTable('refresh',{url:dataUrl});
            }
        });
    }*/
    $("#tabContainer").tabs({
        data: [{
            id: 'home',
            text: '地表径流',
            url: "#springUrl('/surfaceWater/add/"+siteId+"/"+sid+"')",
            closeable: false
        }, {
            id: 'admineap',
            text: '地下水到地表水',
            url: "#springUrl('/surfaceWater/add2/"+siteId+"/"+gid+"')",
            closeable: false
        }],
        showIndex: sIndex,
        loadAll: false
    })



 //   $("#tabContainer").data("tabs").addTab({id: 'test', text: 'addTab', closeable: true, url: 'tab_content.html'})


</script>
#end
#extends("/common/framework.html")
